package com.haoshuang.zhouzhoubang.ui.page.mine.wallet.frozen


import com.haoshuang.zhouzhoubang.databinding.ItemDetails3Binding
import com.haoshuang.zhouzhoubang.model.bean.DepositBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 订单模块中的订单列表适配器
 * */
class ForzenAdapter2(data: MutableList<DepositBean>) :
    BaseBindingQuickAdapter<DepositBean, ItemDetails3Binding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: DepositBean?) {
        val binding = ItemDetails3Binding.bind(holder.itemView)
        binding.apply {
            tvTitle.text = item?.cate_name
            tvValue.text = item?.money

            if (item?.status == 0) {
                tvState.text = "(冻结中)"
            } else {
                tvState.text = "(已解冻)"
            }
        }
    }

}